﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%
        
        PictureCategory category = ViewData["Category"] as PictureCategory;
        PictureGroup group = ViewData["Group"] as PictureGroup;
        
    %>
	上传图片 - <%=group.Name %> - <%=category.Name %> - 图片管理 - Hotent后台管理
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
	<script type="text/javascript" src="/Scripts/jquery.uploadify.v2.1.0.min.js?v=1.0"></script>
	<script type="text/javascript" src="/Scripts/swfobject.js?v=1.0"></script>
    
    <%
        PictureCategory category = ViewData["Category"] as PictureCategory;
        PictureGroup group = ViewData["Group"] as PictureGroup;  
    %>
	<script type="text/javascript">
		$(document).ready(function() {

		$('#fileInput').uploadify({
			uploader: '/Flash/uploadify.swf',
			script: '/AdminPicture/UploadImage/?groupId=<%=group.GroupID %>',
			cancelImg: '/Images/cancel.png',
			multi: true,
			queueID: "queueDiv",
			fileExt: "*.png;*.gif;*.jpg;*.bmp",
			fileDesc: "*.png;*.gif;*.jpg;*.bmp",
			onAllComplete: function() { location.href = "/AdminPicture/EditBatch/?categoryId=<%=category.CategoryID %>&groupId=<%=group.GroupID %>" }
		});

		});

		
		
		
	</script>
	



</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
     <%
        
        PictureCategory category = ViewData["Category"] as PictureCategory;
        PictureGroup group = ViewData["Group"] as PictureGroup;
    %>
    <div class="b1">
        <div style="font-size:20px" class="m5">图片分类:<%=category.Name%></div>
        <div style="font-size:20px" class="m5">图 片 组:<%=group.Name%></div>
        <div class="m5 p5">
            <%--<input id="fileInput" name="fileInput" type="file"/>--%>
            <input id="fileInput" name="fileInput" type="file" />
            <div id="queueDiv" style="width:400px;height:250px;border:1px solid #E5E5E5;padding: 5;overflow:auto;margin-bottom: 10px; margin-top:10px">
            </div>
            <hr />
            <a href="javascript:$('#fileInput').uploadifyUpload();" class="b1 p5 mr5 dbk blik fl">开始上传</a>
            <a href="javascript:$('#fileInput').uploadifyClearQueue();" class="b1 p5 ml5 dbk blik fl">清空列表</a>
            <div class="cb"></div>
        </div>
    </div>
    <div class="m5">
        <%=Html.ActionLink("返回" + group.Name + "图片组", "Index", "AdminPictureGroup", new { id = group.GroupID }, null)%>
    </div>
    


</asp:Content>

